
function Save_TuVanChoVay_Click()
{
    
    
    var cboNganHangID= document.getElementById("cboNganHangID").value;
 
    
    var cboLoai= document.getElementById("cboLoai").value;
    
    var txtDienGiai= document.getElementById("txtDienGiai").value;
    
   
    
    var txtLaiXuat= document.getElementById("txtLaiXuat").value;
    var txtPTThanhToanTruoc= document.getElementById("txtPTThanhToanTruoc").value;
    //var txtEmail= document.getElementById("txtEmail").value;
    
    
   
    

    Save_TuVanChoVay([{name: 'NganHangID', value: '' + cboNganHangID + ''}
            ,{name: 'DienGiai', value: '' + txtDienGiai + ''}
            ,{name: 'Loai', value: '' + cboLoai + ''}
            ,{name: 'LaiXuat', value: '' + txtLaiXuat + ''}
            ,{name: 'PTThanhToanTruoc', value: '' + txtPTThanhToanTruoc + ''}
        ]);
      
        
}
function Delete_tuvanchovay_Click(tuvanid,msg)
{
    var x=confirm(msg);
    if(x==true)
        {
            Delete_tuvanchovay([{name: 'ID', value: '' + tuvanid + ''}]);
        }
}
function Update_tuvanchovay_Click(tuvanid)
{
   
    Update_tuvanchovay([{name: 'ID', value: '' + tuvanid + ''}]);
}

function cboNganHangID_changed()
{
   var cboNganHangID= document.getElementById("cboNganHangID").value;
    select_tuvanchovay([{name: 'ID', value: '' + cboNganHangID + ''}]);
}



function Save_Comment_Click()
{
   var txtCommentText= document.getElementById("txtCommentText").value;
   cmdSave_Comment([{name: 'CommentText', value: '' + txtCommentText + ''}]);
}








var onclickUploadfile=function(key){
    
    //cmdSetParamUploadFile([{name: 'HinhAnhID', value: '' + key + ''}]);  
    $('.custom-input-group .ui-fileupload-choose input').click();
};

function Delete_Blog_Click(blogid,msg)
{
    var x=confirm(msg);
    if(x==true)
        {
            Delete_Blog([{name: 'ID', value: '' + blogid + ''}]);
        }
}
function Update_Blog_Click(blogid)
{
   
    Update_Blog([{name: 'ID', value: '' + blogid + ''}]);
}
function Save_Blog_Click()
{
    
    
    var txtTieuDe= document.getElementById("txtTieuDe").value;
 
    
    var txtTomTat= CKEDITOR.instances['txtTomTat'].getData();
    
    var txtNoiDung= CKEDITOR.instances['txtNoiDung'].getData();
    
    var txtTrangThai="0";

    Save_Blog([
            {name: 'TieuDe', value: '' + txtTieuDe + ''}
            ,{name: 'TomTat', value: '' + txtTomTat + ''}
            ,{name: 'NoiDung', value: '' + txtNoiDung + ''}
            ,{name: 'TrangThai', value: '' + txtTrangThai + ''}
        ]);
      
        
}
function New_Blog_Click()
{
   New_Blog();
}